checkLogin()
renderUsername()
logout()

// 统计数据
async function getData() {
  
  // const token = localStorage.getItem('token')
    const res = await axios('/dashboard')
    // console.log(res.data.data.overview)
    const overview = res.data.overview
    Object.keys(overview).forEach(key=>{
      document.querySelector(`.${key}`).innerHTML = overview[key]
    })
}

getData()